package com.bojiu.lawsearch.lawsearch.service;

import com.bojiu.lawsearch.lawsearch.model.*;
import com.bojiu.lawsearch.lawsearch.util.JsonResult;

import java.util.List;

/**
 * @author: afdiao
 * @Date：2020/3/5 23:23
 * @Description:
 */
public interface BackLawService {
    JsonResult insertLawBaseInfo(LawBaseInfo lawBaseInfo) throws Exception;

    Page<LawBaseInfo> getBaseInfoList(String name, int pageNum, int pageSize);

    void UpdateBaseInfo(LawBaseInfo lawBaseInfo, int id);

    List<Rule> getRuleList(int titleId);

    JsonResult addRuleLabel(int ruleId, String label);

    void deleteBaseInfo(int id);

    Page<SearchQuestion> getSearchQuestion(int pageNum, int pageSize);

    JsonResult updateRuleContent(int ruleId, String content);

    Help getHelpPage();

    JsonResult updateHelpPage(String content);
}
